﻿using UnityEngine;
using UnityEngine.EventSystems;

namespace Core.UI {
    //可拖拽对象
    public class DraggableItem : MonoBehaviour,IBeginDragHandler,IDragHandler,IEndDragHandler {

        public virtual void OnBeginDrag(PointerEventData eventData) {
            
        }

        public virtual void OnDrag(PointerEventData eventData) {
            transform.position = eventData.position;
        }
        
        public virtual void OnEndDrag(PointerEventData eventData) {
            
        }
    }
}